<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: nars.inference.StructuralRules.transformProductImage</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('db/d49/classnars_1_1inference_1_1StructuralRules_a6f7188931508f5b84e6de02301bf798d.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
<a class="anchor" id="a6f7188931508f5b84e6de02301bf798d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void nars.inference.StructuralRules.transformProductImage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d0/df3/classnars_1_1language_1_1Inheritance.html">Inheritance</a>&#160;</td>
          <td class="paramname"><em>inh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm.html">CompoundTerm</a>&#160;</td>
          <td class="paramname"><em>oldContent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short[]&#160;</td>
          <td class="paramname"><em>indices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>&#160;</td>
          <td class="paramname"><em>memory</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">package</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Equivalent transformation between products and images {&lt;(*, S, M) &ndash;&gt; P&gt;, S@(*, S, M)} |- &lt;S --&gt; (/, P, _, M)&gt; {&lt;S --&gt; (/, P, _, M)&gt;, P@(/, P, _, M)} |- &lt;(*, S, M) &ndash;&gt; P&gt; {&lt;S --&gt; (/, P, _, M)&gt;, M@(/, P, _, M)} |- &lt;M --&gt; (/, P, S, _)&gt; </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inh</td><td>An Inheritance statement </td></tr>
    <tr><td class="paramname">oldContent</td><td>The whole content </td></tr>
    <tr><td class="paramname">indices</td><td>The indices of the TaskLink </td></tr>
    <tr><td class="paramname">memory</td><td>Reference to the memory </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="../../da/da1/StructuralRules_8java_source.html#l00357">357</a> of file <a class="el" href="../../da/da1/StructuralRules_8java_source.html">StructuralRules.java</a>.</p>

<p>References <a class="el" href="../../d5/d0e/CompoundTerm_8java_source.html#l00372">nars.language.CompoundTerm.cloneComponents()</a>, <a class="el" href="../../d5/d0e/CompoundTerm_8java_source.html#l00356">nars.language.CompoundTerm.componentAt()</a>, <a class="el" href="../../d8/df2/Term_8java_source.html#l00094">nars.language.Term.equals()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00625">nars.storage.Memory.getCurrentTask()</a>, <a class="el" href="../../d2/d44/Statement_8java_source.html#l00237">nars.language.Statement.getPredicate()</a>, <a class="el" href="../../d6/d10/Task_8java_source.html#l00099">nars.entity.Task.getSentence()</a>, <a class="el" href="../../d2/d44/Statement_8java_source.html#l00229">nars.language.Statement.getSubject()</a>, <a class="el" href="../../da/d1c/Sentence_8java_source.html#l00165">nars.entity.Sentence.getTruth()</a>, <a class="el" href="../../da/d1c/Sentence_8java_source.html#l00189">nars.entity.Sentence.isQuestion()</a>, <a class="el" href="../../d0/d17/Inheritance_8java_source.html#l00068">nars.language.Inheritance.make()</a>, <a class="el" href="../../d7/d9f/ImageInt_8java_source.html#l00078">nars.language.ImageInt.make()</a>, <a class="el" href="../../dd/d62/ImageExt_8java_source.html#l00078">nars.language.ImageExt.make()</a>, <a class="el" href="../../d5/d0e/CompoundTerm_8java_source.html#l00130">nars.language.CompoundTerm.make()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00314">nars.storage.Memory.singlePremiseTask()</a>, <a class="el" href="../../da/da1/StructuralRules_8java_source.html#l00503">nars.inference.StructuralRules.transformPredicatePI()</a>, and <a class="el" href="../../da/da1/StructuralRules_8java_source.html#l00448">nars.inference.StructuralRules.transformSubjectPI()</a>.</p>

<p>Referenced by <a class="el" href="../../d1/d5e/RuleTables_8java_source.html#l00738">nars.inference.RuleTables.transformTask()</a>.</p>
<div class="fragment"><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;                                                                                                                {</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> subject = inh.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5.html#ace4f80751d303c613e467163913bebf5">getSubject</a>();</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;        <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> predicate = inh.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">getPredicate</a>();</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        <span class="keywordflow">if</span> (inh.<a class="code" href="../../d8/db8/classnars_1_1language_1_1Term_ad85f45a7858737445d5158801774ff5f.html#ad85f45a7858737445d5158801774ff5f">equals</a>(oldContent)) {</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;            <span class="keywordflow">if</span> (subject instanceof <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm.html">CompoundTerm</a>) <a class="code" href="../../db/d49/classnars_1_1inference_1_1StructuralRules_a45ae086cf44c9f32cbe9a729f2419594.html#a45ae086cf44c9f32cbe9a729f2419594">transformSubjectPI</a>((CompoundTerm) subject, predicate, memory);</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;            <span class="keywordflow">if</span> (predicate instanceof CompoundTerm) <a class="code" href="../../db/d49/classnars_1_1inference_1_1StructuralRules_ad34f61108459aea34b27a7547ac4ba48.html#ad34f61108459aea34b27a7547ac4ba48">transformPredicatePI</a>(subject, (CompoundTerm) predicate, memory);</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;            <span class="keywordtype">short</span> index = indices[indices.length - 1];</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;            <span class="keywordtype">short</span> side = indices[indices.length - 2];</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;            CompoundTerm comp = (CompoundTerm) inh.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_acedae916705e9fa1669391a7d728b840.html#acedae916705e9fa1669391a7d728b840">componentAt</a>(side);</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;            <span class="keywordflow">if</span> ((comp instanceof <a class="code" href="../../d8/d73/classnars_1_1language_1_1Product.html">Product</a>)) {</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;                <span class="keywordflow">if</span> (side == 0) {</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;                    subject = comp.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_acedae916705e9fa1669391a7d728b840.html#acedae916705e9fa1669391a7d728b840">componentAt</a>(index);</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;                    predicate = <a class="code" href="../../db/dbb/classnars_1_1language_1_1ImageExt.html">ImageExt</a>.<a class="code" href="../../db/dbb/classnars_1_1language_1_1ImageExt_afb24af5cc6c098ad3f5d837fa383e69c.html#afb24af5cc6c098ad3f5d837fa383e69c">make</a>((Product) comp, inh.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">getPredicate</a>(), index, memory);</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;                    subject = <a class="code" href="../../df/de3/classnars_1_1language_1_1ImageInt.html">ImageInt</a>.<a class="code" href="../../df/de3/classnars_1_1language_1_1ImageInt_ad05e4231ed31d78ad4c8b4fefbc964fa.html#ad05e4231ed31d78ad4c8b4fefbc964fa">make</a>((Product) comp, inh.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5.html#ace4f80751d303c613e467163913bebf5">getSubject</a>(), index, memory);</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;                    predicate = comp.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_acedae916705e9fa1669391a7d728b840.html#acedae916705e9fa1669391a7d728b840">componentAt</a>(index);</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;                }</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((comp instanceof <a class="code" href="../../db/dbb/classnars_1_1language_1_1ImageExt.html">ImageExt</a>) &amp;&amp; side == 1) {</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;                <span class="keywordflow">if</span> (index == ((ImageExt) comp).getRelationIndex()) {</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;                    subject = Product.make(comp, inh.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5.html#ace4f80751d303c613e467163913bebf5">getSubject</a>(), index, memory);</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;                    predicate = comp.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_acedae916705e9fa1669391a7d728b840.html#acedae916705e9fa1669391a7d728b840">componentAt</a>(index);</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;                    subject = comp.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_acedae916705e9fa1669391a7d728b840.html#acedae916705e9fa1669391a7d728b840">componentAt</a>(index);</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;                    predicate = ImageExt.make((ImageExt) comp, inh.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5.html#ace4f80751d303c613e467163913bebf5">getSubject</a>(), index, memory);</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;                }</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;                <span class="keywordflow">if</span> (comp instanceof <a class="code" href="../../df/de3/classnars_1_1language_1_1ImageInt.html">ImageInt</a> &amp;&amp; side == 0) <span class="keywordflow">if</span> (index != ((<a class="code" href="../../df/de3/classnars_1_1language_1_1ImageInt.html">ImageInt</a>) comp).getRelationIndex()) {</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;                    subject = <a class="code" href="../../df/de3/classnars_1_1language_1_1ImageInt.html">ImageInt</a>.<a class="code" href="../../df/de3/classnars_1_1language_1_1ImageInt_ad05e4231ed31d78ad4c8b4fefbc964fa.html#ad05e4231ed31d78ad4c8b4fefbc964fa">make</a>((<a class="code" href="../../df/de3/classnars_1_1language_1_1ImageInt.html">ImageInt</a>) comp, inh.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">getPredicate</a>(), index, memory);</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;                    predicate = comp.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_acedae916705e9fa1669391a7d728b840.html#acedae916705e9fa1669391a7d728b840">componentAt</a>(index);</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;                    subject = comp.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_acedae916705e9fa1669391a7d728b840.html#acedae916705e9fa1669391a7d728b840">componentAt</a>(index);</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;                    predicate = Product.make(comp, inh.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">getPredicate</a>(), index, memory);</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;                }</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;                <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;                    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;                }</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;            }</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;            <a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance.html">Inheritance</a> newInh = <a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance.html">Inheritance</a>.<a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance_a5ccaf18d33e722f438944debb2757b34.html#a5ccaf18d33e722f438944debb2757b34">make</a>(subject, predicate, memory);</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;            <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> content = null;</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;            <span class="keywordflow">if</span> (indices.length != 2) <span class="keywordflow">if</span> (!(oldContent instanceof <a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement.html">Statement</a>) || 1 != indices[0]) {</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;                ArrayList&lt;Term&gt; componentList;</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;                <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> condition = oldContent.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_acedae916705e9fa1669391a7d728b840.html#acedae916705e9fa1669391a7d728b840">componentAt</a>(0);</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;                <span class="keywordflow">if</span> ((oldContent instanceof <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication.html">Implication</a> || (oldContent instanceof <a class="code" href="../../d1/d8b/classnars_1_1language_1_1Equivalence.html">Equivalence</a>))) {</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;                    <span class="keywordflow">if</span> (!(condition instanceof <a class="code" href="../../d6/d98/classnars_1_1language_1_1Conjunction.html">Conjunction</a>)) {</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;                        componentList = oldContent.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a5923e4b211c0c1e1e53b39ebed2c7be1.html#a5923e4b211c0c1e1e53b39ebed2c7be1">cloneComponents</a>();</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;                        componentList.set(indices[0], newInh);</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;                        content = Statement.make((Statement) oldContent, componentList.get(0), componentList.get(1), memory);</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;                    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;                        componentList = ((CompoundTerm) condition).cloneComponents();</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;                        componentList.set(indices[1], newInh);</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;                        <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> newCond = CompoundTerm.make((CompoundTerm) condition, componentList, memory);</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;                        content = Statement.make((Statement) oldContent, newCond, ((Statement) oldContent).getPredicate(), memory);</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;                    }</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;                    componentList = oldContent.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a5923e4b211c0c1e1e53b39ebed2c7be1.html#a5923e4b211c0c1e1e53b39ebed2c7be1">cloneComponents</a>();</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;                    componentList.set(indices[0], newInh);</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;                    <span class="keywordflow">if</span> (oldContent instanceof Conjunction) {</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;                        content = CompoundTerm.make(oldContent, componentList, memory);</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;                    }</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;                }</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;                content = Statement.make((Statement) oldContent, oldContent.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_acedae916705e9fa1669391a7d728b840.html#acedae916705e9fa1669391a7d728b840">componentAt</a>(0), newInh, memory);</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;            }</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;            <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;                content = newInh;</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;            }</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;            <span class="keywordflow">if</span> (null != content) {</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;                Sentence sentence = memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a26eda4f00b333b706b4e3d069fdf1508.html#a26eda4f00b333b706b4e3d069fdf1508">getCurrentTask</a>().<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f.html#ab140cb553a6cf40b07093d1df283567f">getSentence</a>();</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;                TruthValue truth = sentence.<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_a9f69b4fef64c81abad21404946cd41f9.html#a9f69b4fef64c81abad21404946cd41f9">getTruth</a>();</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;                BudgetValue budget;</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;                budget = sentence.isQuestion() ? compoundBackward(content, memory) : compoundForward(truth, content, memory);</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;                memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aec1106814819aa1c8437001c2c4bf1a3.html#aec1106814819aa1c8437001c2c4bf1a3">singlePremiseTask</a>(content, truth, budget);</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;            }</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;        }</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    }</div>
<div class="ttc" id="classnars_1_1entity_1_1Sentence_a9f69b4fef64c81abad21404946cd41f9_html_a9f69b4fef64c81abad21404946cd41f9"><div class="ttname"><a href="../../d6/d25/classnars_1_1entity_1_1Sentence_a9f69b4fef64c81abad21404946cd41f9.html#a9f69b4fef64c81abad21404946cd41f9">nars.entity.Sentence.getTruth</a></div><div class="ttdeci">TruthValue getTruth()</div><div class="ttdoc">Get the truth value of the sentence. </div><div class="ttdef"><b>Definition:</b> <a href="../../da/d1c/Sentence_8java_source.html#l00165">Sentence.java:165</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Conjunction_html"><div class="ttname"><a href="../../d6/d98/classnars_1_1language_1_1Conjunction.html">nars.language.Conjunction</a></div><div class="ttdoc">Conjunction of statements. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d2f/Conjunction_8java_source.html#l00031">Conjunction.java:31</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0_html_ababe6155e2f78e769f76493317e118e0"><div class="ttname"><a href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">nars.language.Statement.getPredicate</a></div><div class="ttdeci">Term getPredicate()</div><div class="ttdoc">Return the second component of the statement. </div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d44/Statement_8java_source.html#l00237">Statement.java:237</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Inheritance_html"><div class="ttname"><a href="../../d0/df3/classnars_1_1language_1_1Inheritance.html">nars.language.Inheritance</a></div><div class="ttdoc">A Statement about an Inheritance relation. </div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d17/Inheritance_8java_source.html#l00031">Inheritance.java:31</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1ImageExt_html"><div class="ttname"><a href="../../db/dbb/classnars_1_1language_1_1ImageExt.html">nars.language.ImageExt</a></div><div class="ttdoc">An extension image. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d62/ImageExt_8java_source.html#l00035">ImageExt.java:35</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1StructuralRules_a45ae086cf44c9f32cbe9a729f2419594_html_a45ae086cf44c9f32cbe9a729f2419594"><div class="ttname"><a href="../../db/d49/classnars_1_1inference_1_1StructuralRules_a45ae086cf44c9f32cbe9a729f2419594.html#a45ae086cf44c9f32cbe9a729f2419594">nars.inference.StructuralRules.transformSubjectPI</a></div><div class="ttdeci">static void transformSubjectPI(CompoundTerm subject, Term predicate, Memory memory)</div><div class="ttdoc">Equivalent transformation between products and images when the subject is a compound {<(*...</div><div class="ttdef"><b>Definition:</b> <a href="../../da/da1/StructuralRules_8java_source.html#l00448">StructuralRules.java:448</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Inheritance_a5ccaf18d33e722f438944debb2757b34_html_a5ccaf18d33e722f438944debb2757b34"><div class="ttname"><a href="../../d0/df3/classnars_1_1language_1_1Inheritance_a5ccaf18d33e722f438944debb2757b34.html#a5ccaf18d33e722f438944debb2757b34">nars.language.Inheritance.make</a></div><div class="ttdeci">static Inheritance make(Term subject, Term predicate, Memory memory)</div><div class="ttdoc">Try to make a new compound from two components. </div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d17/Inheritance_8java_source.html#l00068">Inheritance.java:68</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1StructuralRules_ad34f61108459aea34b27a7547ac4ba48_html_ad34f61108459aea34b27a7547ac4ba48"><div class="ttname"><a href="../../db/d49/classnars_1_1inference_1_1StructuralRules_ad34f61108459aea34b27a7547ac4ba48.html#ad34f61108459aea34b27a7547ac4ba48">nars.inference.StructuralRules.transformPredicatePI</a></div><div class="ttdeci">static void transformPredicatePI(Term subject, CompoundTerm predicate, Memory memory)</div><div class="ttdoc">Equivalent transformation between products and images when the predicate is a compound {<(*...</div><div class="ttdef"><b>Definition:</b> <a href="../../da/da1/StructuralRules_8java_source.html#l00503">StructuralRules.java:503</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a26eda4f00b333b706b4e3d069fdf1508_html_a26eda4f00b333b706b4e3d069fdf1508"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a26eda4f00b333b706b4e3d069fdf1508.html#a26eda4f00b333b706b4e3d069fdf1508">nars.storage.Memory.getCurrentTask</a></div><div class="ttdeci">Task getCurrentTask()</div><div class="ttdoc">The selected Task. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00625">Memory.java:625</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_aec1106814819aa1c8437001c2c4bf1a3_html_aec1106814819aa1c8437001c2c4bf1a3"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_aec1106814819aa1c8437001c2c4bf1a3.html#aec1106814819aa1c8437001c2c4bf1a3">nars.storage.Memory.singlePremiseTask</a></div><div class="ttdeci">void singlePremiseTask(Term newContent, TruthValue newTruth, BudgetValue newBudget)</div><div class="ttdoc">Shared final operations by all single-premise rules, called in StructuralRules. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00314">Memory.java:314</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_a5923e4b211c0c1e1e53b39ebed2c7be1_html_a5923e4b211c0c1e1e53b39ebed2c7be1"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a5923e4b211c0c1e1e53b39ebed2c7be1.html#a5923e4b211c0c1e1e53b39ebed2c7be1">nars.language.CompoundTerm.cloneComponents</a></div><div class="ttdeci">ArrayList&lt; Term &gt; cloneComponents()</div><div class="ttdoc">Clone the component list. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00372">CompoundTerm.java:372</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Statement_html"><div class="ttname"><a href="../../d1/d5e/classnars_1_1language_1_1Statement.html">nars.language.Statement</a></div><div class="ttdoc">A statement is a compound term, consisting of a subject, a predicate, and a relation symbol in betwee...</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d44/Statement_8java_source.html#l00033">Statement.java:33</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f_html_ab140cb553a6cf40b07093d1df283567f"><div class="ttname"><a href="../../dc/ddc/classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f.html#ab140cb553a6cf40b07093d1df283567f">nars.entity.Task.getSentence</a></div><div class="ttdeci">Sentence getSentence()</div><div class="ttdoc">Get the sentence. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d10/Task_8java_source.html#l00099">Task.java:99</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1ImageInt_html"><div class="ttname"><a href="../../df/de3/classnars_1_1language_1_1ImageInt.html">nars.language.ImageInt</a></div><div class="ttdoc">An intension image. </div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d9f/ImageInt_8java_source.html#l00035">ImageInt.java:35</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1ImageInt_ad05e4231ed31d78ad4c8b4fefbc964fa_html_ad05e4231ed31d78ad4c8b4fefbc964fa"><div class="ttname"><a href="../../df/de3/classnars_1_1language_1_1ImageInt_ad05e4231ed31d78ad4c8b4fefbc964fa.html#ad05e4231ed31d78ad4c8b4fefbc964fa">nars.language.ImageInt.make</a></div><div class="ttdeci">static Term make(List&lt; Term &gt; argList, Memory memory)</div><div class="ttdoc">Try to make a new ImageExt. </div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d9f/ImageInt_8java_source.html#l00078">ImageInt.java:78</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Term_ad85f45a7858737445d5158801774ff5f_html_ad85f45a7858737445d5158801774ff5f"><div class="ttname"><a href="../../d8/db8/classnars_1_1language_1_1Term_ad85f45a7858737445d5158801774ff5f.html#ad85f45a7858737445d5158801774ff5f">nars.language.Term.equals</a></div><div class="ttdeci">boolean equals(Object that)</div><div class="ttdoc">Equal terms have identical name, though not necessarily the same reference. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/df2/Term_8java_source.html#l00094">Term.java:94</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Product_html"><div class="ttname"><a href="../../d8/d73/classnars_1_1language_1_1Product.html">nars.language.Product</a></div><div class="ttdoc">A Product is a sequence of terms. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/df9/Product_8java_source.html#l00032">Product.java:32</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Equivalence_html"><div class="ttname"><a href="../../d1/d8b/classnars_1_1language_1_1Equivalence.html">nars.language.Equivalence</a></div><div class="ttdoc">A Statement about an Equivalence relation. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/dcc/Equivalence_8java_source.html#l00031">Equivalence.java:31</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Term_html"><div class="ttname"><a href="../../d8/db8/classnars_1_1language_1_1Term.html">nars.language.Term</a></div><div class="ttdoc">Term is the basic component of Narsese, and the object of processing in NARS. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/df2/Term_8java_source.html#l00040">Term.java:40</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_acedae916705e9fa1669391a7d728b840_html_acedae916705e9fa1669391a7d728b840"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_acedae916705e9fa1669391a7d728b840.html#acedae916705e9fa1669391a7d728b840">nars.language.CompoundTerm.componentAt</a></div><div class="ttdeci">Term componentAt(int i)</div><div class="ttdoc">get a component by index </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00356">CompoundTerm.java:356</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_html"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm.html">nars.language.CompoundTerm</a></div><div class="ttdoc">A CompoundTerm is a Term with internal (syntactic) structure. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00036">CompoundTerm.java:36</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1ImageExt_afb24af5cc6c098ad3f5d837fa383e69c_html_afb24af5cc6c098ad3f5d837fa383e69c"><div class="ttname"><a href="../../db/dbb/classnars_1_1language_1_1ImageExt_afb24af5cc6c098ad3f5d837fa383e69c.html#afb24af5cc6c098ad3f5d837fa383e69c">nars.language.ImageExt.make</a></div><div class="ttdeci">static Term make(List&lt; Term &gt; argList, Memory memory)</div><div class="ttdoc">Try to make a new ImageExt. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d62/ImageExt_8java_source.html#l00078">ImageExt.java:78</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5_html_ace4f80751d303c613e467163913bebf5"><div class="ttname"><a href="../../d1/d5e/classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5.html#ace4f80751d303c613e467163913bebf5">nars.language.Statement.getSubject</a></div><div class="ttdeci">Term getSubject()</div><div class="ttdoc">Return the first component of the statement. </div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d44/Statement_8java_source.html#l00229">Statement.java:229</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Implication_html"><div class="ttname"><a href="../../da/db6/classnars_1_1language_1_1Implication.html">nars.language.Implication</a></div><div class="ttdoc">A Statement about an Inheritance relation. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d1a/Implication_8java_source.html#l00031">Implication.java:31</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../db/d49/classnars_1_1inference_1_1StructuralRules_a6f7188931508f5b84e6de02301bf798d_a6f7188931508f5b84e6de02301bf798d_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../db/d49/classnars_1_1inference_1_1StructuralRules_a6f7188931508f5b84e6de02301bf798d_a6f7188931508f5b84e6de02301bf798d_icgraph.svg" width="100%" height="300"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/d81/namespacenars.html">nars</a></li><li class="navelem"><a class="el" href="../../d9/d79/namespacenars_1_1inference.html">inference</a></li><li class="navelem"><a class="el" href="../../db/d49/classnars_1_1inference_1_1StructuralRules.html">StructuralRules</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:59 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
